Per hop behavior for differentiated services in mobile ad hoc wireless networks

ABSTRACT

Described are a system and method of providing quality of service assurances for transmitting packets over a channel capable of transmission at a nominal bandwidth. A plurality of classes is defined. Each class represents an aggregate behavior of packets and is allocated a nominal departure rate at which the packets of that class are transmitted when an available bandwidth of the channel is substantially at the nominal bandwidth. Each class is assured a minimum allocation of the available bandwidth for transmitting packets of that class if the available bandwidth of the channel is operating at less than the nominal bandwidth. The minimum allocations to each of the classes can be proportionally different than the nominal departure rates allocated to these classes.

GOVERNMENT SUPPORT

[0001] This invention was made with government support under Contract No. DAAB07-96-D-H-002, D.O. 212, subcontract S-1548 (SRI Project P10750), awarded by the U.S. Army Communications and Electronics Command. The United States government has certain rights in the invention.

FIELD OF THE INVENTION

[0002] The invention relates generally to mobile networks. More specifically, the invention relates to a system and method for providing a per hop behavior for forwarding packets in multi-hop mobile networks.

BACKGROUND

[0003] For applications that require quality of service (QoS) assurances, the best effort service model commonly used to transmit information over the Internet is proving inadequate. In general, assuring QoS entails providing differentiated services for certain packet-level or session-level treatment; that is, some users receive higher priority treatment or have a greater bandwidth allocation than other users.

[0004] Approaches to managing data traffic for providing differential services fall into two categories, those with network-wide reservations that include explicit signaling and those without such network-wide reservations. Reservation-based traffic management explicitly identifies and reserves network resources. Network nodes categorize data traffic into classes and provide QoS using the network resources reserved for the particular class associated with incoming data traffic. One example of network-wide reservation-based traffic management is the Integrated Services (IntServ) model, which uses the per-flow approach to provide guarantees to individual data streams and makes reservations of resources at intermediate routers.

[0005] In traffic management that does not use network-wide reservations, but can use local reservations at a router, the network nodes classify data traffic into a set of classes and use the classes to grant priority-based treatment to the traffic. An example of such traffic management is the Differentiated Services (DiffServ) model. DiffServ provides aggregate assurances for a group of applications.

[0006] Today, many of the communication links between the various communications entities in networks are wire-line; that is, client and server systems are typically connected to other server and client systems by wires, such as twisted-pair wires, coaxial cables, fiber optic cables, and the like. Notwithstanding this wired infrastructure, wireless networks such as cellular and Personal Communication Systems (PCS) and wireless local area networks, microwave links, infrared (IR) links, and satellite links are becoming more prevalent. Wireless devices connected to such networks are typically mobile. Such mobility creates frequent, dynamic changes to the network topology. Moreover, the peculiarities of signal propagation over wireless links cause frequent changes to the state of such communication links between the devices on the network. Consequently, nodes in wireless networks need to deal with higher data losses and frequent bandwidth reallocations.

[0007] The initial designs of the IntServ and DiffServ models, however, contemplated wired networks only and are not suited for the various characteristics of wireless networks. Thus, there remains a need for a system and a method that can manage traffic in a wireless network to provide QoS assurances despite the aforementioned difficulties associated with the mobility of the communication devices and propagation conditions encountered in the wireless networks.

SUMMARY OF THE INVENTION

[0008] An objective of the invention is to provide a wireless per hop behavior (PHB) for packet forwarding that is capable of providing quality of service (QoS) assurances in multi-hop mobile ad hoc wireless networks (MANET). Such MANETs comprise a plurality of routing nodes connected by wireless communication links. Although suited for wireless links, the PHB of the invention applies to wired links as well. In wireless networks, router nodes are mobile and propagation conditions between router nodes vary frequently, thereby changing the available bandwidth of the communication links.

[0009] Another objective is for the PHB to control different QoS assurances to different classes of service. Another objective is to support the tradeoff between cost and QoS, thereby leading to cost-based differentiated quality for services. Another objective is to provide scheduling mechanisms that are performed by the router nodes to attain the PHB of the invention.

[0010] In one aspect, the invention features a method of providing quality of service assurances for transmitting packets over a channel capable of transmission at a nominal bandwidth. A plurality of classes is defined. Each of the classes represents an aggregate behavior of packets and is allocated a nominal departure rate at which the packets of that class are transmitted when an available bandwidth of the channel is substantially at the nominal bandwidth. Each of the classes is assured a minimum allocation of the available bandwidth for transmitting packets of that class if the available bandwidth of the channel is operating at less than the nominal bandwidth.

[0011] Assuring a minimum allocation to each of the classes comprises assigning a percentage to each of the classes. This percentage represents a minimum percentage of the available bandwidth that is allocated to that class. The minimum allocations assured to the classes can be proportionally different than the nominal departure rates allocated to these classes

[0012] A router node assigns a nominal departure rate to each of the classes. The nominal departure rate, for example, can be a percentage of a nominal bandwidth of an outgoing communication link of that router node. In another embodiment, the nominal departure rate can be a desired transmission rate of a class. The nominal departure rate allocated to a given class can be different for different router nodes. If the router node has a plurality of outgoing communication links, the nominal departure rate allocated to a given class can be different for the different outgoing communication links.

[0013] The nominal departure rate together with the minimum allocation allocated (i.e., absolute allocation) to a given class can be different for different router nodes. If the router node has a plurality of outgoing communication links, the absolute allocation can be different for the different outgoing communication links. For one or more of the classes, the allocations of the nominal departure rate and/or of the minimum allocation of the available bandwidth can be dynamically changed.

[0014] The method of claim 1 further comprising dynamically changing the minimum allocations allocated to the classes.

[0015] Drop precedences are established for the classes to determine a priority for dropping packets of that class. Packets are dropped from queues to limit the delay at a given router node. Scheduling priorities are assigned to the classes based on a criterion such as the delay that each class can tolerate. Other factors among classes being equal, the scheduling priorities determine from which class the router node takes the next packet for transmission.

[0016] In another aspect, the invention features a router node capable of supporting differentiated services and providing QoS assurances in a wireless network. The router node includes a classifier that defines a plurality of classes. Each of the classes represents an aggregate behavior of packets. An allocater allocates to each of the classes a nominal departure rate at which the packets of that class are transmitted when an available bandwidth of the channel is substantially operating at the nominal bandwidth. A rate prioritizer assigns to each of the classes a minimum allocation of the available bandwidth for transmitting packets of that class if the available bandwidth of the channel is operating at less than the nominal bandwidth. In some embodiments, the router node has a plurality of outgoing communication links. The nominal departure rate allocated to a given class or the nominal departure rate together with the assured minimum allocation allocated to a given class can be different for different outgoing communication links

[0017] In yet another aspect, the invention features an article of manufacture having computer-readable program means embodied thereon for providing quality of service assurances for transmitting packets over a channel capable of transmission at a nominal bandwidth. The article of manufacture includes computer-readable means for defining a plurality of classes. Each of the classes represents an aggregate behavior of packets. The article of manufacture also includes computer-readable means for allocating to each of the classes a nominal departure rate at which the packets of that class are transmitted when an available bandwidth of the channel is substantially operating at the nominal bandwidth, and computer-readable means for assuring each of the classes a minimum allocation of the available bandwidth for transmitting packets of that class if the available bandwidth of the channel is operating at less than the nominal bandwidth.

BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The invention is pointed out with particularity in the appended claims. The objectives advantages of the invention described above, as well as further objectives and advantages of the invention, may be better understood by reference to the following description taken in conjunction with the accompanying drawings, in which:

[0019]FIG. 1 is a block diagram of an embodiment of a differentiated services (DS) domain, including a plurality of DS-routing nodes, in communication with the Internet;

[0020]FIG. 2 is flow diagram illustrating an embodiment of a process employed by the DS-router nodes in the DS domain for providing quality of service (QoS) assurances to packet traffic aggregated into service classes;

[0021]FIG. 3 is a flow diagram illustrating an embodiment of a scheduling mechanism by which a routing node in the DS domain selects a class of packets for forwarding such packets towards their destination in accordance with the principles of the invention; and

[0022]FIG. 4 is a flow diagram illustrating an embodiment of another scheduling mechanism by which a routing node in the DS domain selects a class of packets for forwarding such packets towards their destination in accordance with the principles of the invention.

DESCRIPTION OF THE INVENTION

[0023]FIG. 1 shows an embodiment of a differentiated services (“DS”) domain 4 (hereafter, DS-domain) in communication with a global network of networks 8 (i.e., the Internet). In general, a DS-domain is a contiguous set of DS-compliant nodes that operate according to a common set of service provisioning policies and per-hop behavior definitions. Per-hop behavior or “PHB” is the forwarding behavior applied at each DS-compliant node to a DS behavior aggregate, i.e., a collection of packets that are aggregated based on similar transmission characteristics, such as delay constraints, sensitivity to loss, and degree of traffic burstiness. DS-compliant nodes are capable of implementing differentiated services in accordance with the policies and PHB definitions.

[0024] Referring to FIG. 1, the DS-domain 4 includes DS-compliant boundary (or edge) router nodes 12, 12′, 12″ (generally, DS-boundary routers 12) and DS-compliant interior (or core) router nodes 16, 16′ (generally, DS-interior routers 16). DS-boundary routers, in general, connect a DS-domain to end-user devices, such as laptop computers, personal digital assistants, cellular telephones, and to other networks, such as WANs (wide-area networks), LANs (local area networks), and the Internet. Such end-users and other networks may or may not be DS-capable. DS-boundary routers handle packet traffic that enters and leaves the DS-domain. DS-interior routers are those router nodes within a DS-domain that are not DS-boundary routers, and route packet traffic passing to and from the DS-boundary routers through the interior of the DS-domain.

[0025] In FIG. 1, the DS-boundary router 12 is in communication with end users 20 and 20′ (generally 20), the DS-boundary router 12′ is in communication with a LAN 24, and the DS-boundary router 12″ is in communication with the Internet 8. The DS-interior router 16 is in communication with DS-boundary router 12 and a DS-interior router 16′. The DS-interior router 16′ is also in communication with the DS-boundary routers 12′ and 12″.

[0026] The DS-boundary and DS-interior routers 12, 16 forward packet traffic through the DS-domain 4 to other DS-routers 12, 16, end-users 20, and networks 8, 24 over communication links 28. These communication links 28 can be wired or wireless. Examples of wireless communication links include microwave links, radio frequency (RF) links, infrared (IR) links, and satellite links. In principle, the DS-domain 4 is referred to as a wireless network because of the presence of wireless devices, although some entities within the DS-domain 4 can be connected by wire-line links.

[0027] Each communication link 28 is capable of supporting a certain amount of packet traffic (referred to hereafter as a channel bandwidth), although in practice the full channel bandwidth may not be available for use. Because of wireless links in the DS-domain 4, those wireless DS-routers 12, 16 and end user devices 20 can be mobile and can be subject to varying propagation conditions. This mobility, when it occurs, can affect the channel bandwidth that is actually available over a link 28, as wireless DS-nodes 12, 16 and end user devices 20 move in and out of range of each other, breaking connections with one node or device and establishing connections with another. Wired DS-routers 12, 16 and end user devices 20 are less likely to move within the DS-domain 4 than their wireless counterparts, but can still affect the actual available channel bandwidth when added to or removed from the DS-domain 4 or when turned on and off. Radio propagation peculiarities over wireless links also contribute to the long-term and short-term fluctuations in available bandwidth.

[0028] Accordingly, a basic problem faced in wireless networks is that the available service rates at the DS-boundary and DS-interior routers 12, 16 vary highly over time. The invention provides a per-hop behavior (PHB) that takes into account this variability and observes changing available bandwidth (for example, in terms of percentiles) based on real-time measurements. In accordance with the principles of the invention, this PHB enables the offering of quality of service (QoS) assurances for packet traffic in a multi-hop wireless network that experiences dynamic changes to the actual available bandwidth because of router node and end-user device mobility. Although suited for mobile ad hoc wireless networks, the PHB of the invention can also operate in a wired network or networks having a mixture of wired and wireless nodes.

[0029] To provide these QoS assurances, the PHB defines a number of classes (or service classes). Each service class represents the requirements of a behavior aggregate and can be specified based on delay constraints, sensitivity to packet loss, and/or degree of business of incoming traffic. Some examples of service classes are:

[0030] A first service class is for very low-delay, bounded loss treatment. This treatment allows configuration of services that are delay and jitter sensitive such as voice and video. The parameters for low delay and loss bounds are determined based on characteristics of specific networks and service needs. The source of the traffic uses some form of admission control and a DS-domain boundary router at the DS-domain interface employs traffic control to support this treatment.

[0031] A second service class is for very low-loss, bounded delay treatment. This treatment allows configuration of services that are loss-sensitive but can tolerate delays within some bounds, such as file transfer and email. The parameters for tolerable loss and bounds for delays are determined based on characteristics of specific networks and the service needs.

[0032] Each packet receives a particular forwarding treatment at each DS-router 12, 16, in accordance with the service class to which it belongs, resulting in a form of QoS assurance.

[0033] Packet traffic is policed at the edge of the DS-domain 4 and is controlled at the edge based on congestion feedback. DS-boundary routers 12 include a classifier, which classifies packets according to a DS-codepoint. A DS-codepoint is a specific value inserted into a DS-field in a packet header that identifies the PHB to be practiced on the packet. DS-compliant nodes examine the packets to determine whether to apply PHB. For IPv4, the codepoint is in the TOS (Type of Service) byte. In IPv6, the codepoint is in the Traffic Class byte.

[0034] The DS-boundary routers 12 also include a meter that checks packet flow properties against traffic profiles for a given user, a marker that sets and resets the DS-codepoint according to a user's request, and a shaper and a packet dropper that conform the packet flow to the user's profile. DS-interior routers 16 also forward and possibly mark packets.

[0035] In one embodiment, each DS-router 12, 16 has a single FIFO (first in, first out) queue for each service class. For each service class, the FIFO queue for that class is configured with a maximum queue length that limits the per-hop queuing delay. If the queue for a given service class is full upon the arrival of new packet for that class, the DS-router 12, 16 discards the new packet.

[0036] Delay per hop is limited to dropping packets, e.g., based on queue size. Different classes can have different per hop delay requirements. For large delay constraints, the packet dropping can be gradual using a technique like Random Early Drop (RED) described by S. Floyd and V. Jacobson in “Random Early Detection Gateways for Congestion Avoidance,” IEEE/ACM Transactions on Networking, Vol. 1, No. 4 pp. 397-413, August 1993.

[0037] In brief overview, the PHB of the invention provides expedited service (i.e., no queuing of packets) with high probability during normal communication-link conditions and with decreasing probability during periods when communication-link conditions deteriorate. This is accomplished by allowing variation in the configured nominal departure rate allocation and allowing queues to compensate for changes in the actual available bandwidth. The available bandwidth can be subdivided for reservations, priority-based allocations, and best-effort handling as a back up.

[0038] More specifically, the DS-routers 12, 16 allocate a nominal departure rate to each class based on an anticipated behavior of the outgoing communication link 28 (i.e., out from the DS-routers 12, 16). The anticipated behavior (or “nominal bandwidth”) can be the same as or less than the full channel bandwidth capability of the communication link 28. A nominal departure rate for each class is the rate (e.g., in packets per second (pkts/sec)) at which a given DS-router 12, 16, under normal link conditions, transmits packets for that class over the link 28. That is, under normal link conditions, each class is provided its allocated nominal departure rate. When packets of a given service class are forwarded at its allocated nominal departure rate, such packets do not build up in its queue.

[0039] In one embodiment, the allocation of nominal departure rates is specified in terms of a percentage of the nominal bandwidth. For example, consider that the nominal bandwidth of a given outgoing link 28 of a given DS-router 12 is 100K pkts/sec, and that the DS-domain 4 supports three service classes: service classes A, B, and C. The DS-router 12 can allocate nominal departure rates of 60% of the nominal bandwidth (60K pkts/sec) to service class A, 30% (30K pkts/sec) to service class B, and 10% (10K pkts/sec) to service class C.

[0040] DS-routers 12, 16 with more than one outgoing link such as DS-interior router 16′, allocate a nominal departure rate for each class for each outgoing link. The nominal departure rate allocated to a given class can differ or be the same for each outgoing link. For example, adding a second outgoing link to the previous example, the nominal departure rate allocated to packets of class A can be 60% on both outgoing links or 60% on one outgoing link and a different percentage such as 20% on the other. For example, where the outgoing links have the same nominal bandwidth (e.g., 100K pkts/sec), the nominal departure rate for both outgoing links is 60K pkts/sec when the percentage allocations are both 60%, or 60K pkts/sec and 20K pkts/sec when the percentage allocations are 60% and 20. Where the outgoing links have different nominal bandwidths (e.g., 100K pkts/sec for a first outgoing link and 300K pkts/sec for a second outgoing link), then allocating the same nominal departure rate percentage of 60% to both outgoing links produces different nominal departure rates (60K pkts/sec and 180K pkts/sec for the first and second links, respectively). Whereas allocating different nominal departure rate percentages (e.g., 60% and 20% to the first and second links, respectively) produces the same nominal departure rate of 60K pkts/sec for each outgoing link.

[0041] The nominal departure rate for each class is expected to hold with high probability under good network conditions. The short-term rate of transmitted traffic is limited to its configured nominal departure rate, e.g., using token buckets or exponential moving averages of local traffic rates. This limit is enforced even if no other classes have packets waiting in the queues to be transmitted, because the additional traffic could cause congestion downstream.

[0042] The PHB of the invention assigns a rate priority to each class (e.g., by assigning a value to each class). Different classes can have different configured rate priorities. In general, a higher rate priority for a given class indicates that that class experiences less percent degradation compared to other classes when the available bandwidth decreases from the nominal bandwidth. For example, if class A has a higher rate priority than class B, then any loss in actual bandwidth impacts class B traffic before class A traffic. Also, if the total bandwidth provided to all classes is reduced because of resource reduction, then the actual rate provided to class A is reduced from its nominal departure rate by a smaller percentage than the actual rate provided to class B.

[0043] Rate priorities correspond to the likelihood and degree that the bandwidth actually provided to a given class will be relatively reduced if resources are reduced or lost. The PHB of the invention implements the rate priorities assigned to the classes by allocating a percentage of the actual available bandwidth (hereafter, a rate priority percentage) to each of the service classes. Classes with higher rate priorities receive a higher rate priority percentage of the available bandwidth than classes with lower rate priorities. These allocated rate priority percentages assure each class a minimum percentage of the actual available bandwidth if the actual available bandwidth degrades from the nominal bandwidth. Accordingly, under favorable operating conditions, each class receives its allocated nominal departure rate. If network resources fall below conditions that can support the nominal departure rate of every class, each class can receive less than its nominal departure rate, but always greater than or equal to its allocated rate priority percentage of the actual available bandwidth.

[0044] The rate priority assigned to each class allows determination of an actual available rate for that class as a function of the rate priorities of other classes and their respective nominal departure rate allocations. Thus, the classes operate interdependently. As the total available bandwidth fluctuates with time, the actual bandwidth allocations to the classes depend on the rate priorities and nominal departure rate allocations in a manner described below.

[0045] Each configured rate priority indicates the maximum degree to which any degradation in the bandwidth affects the traffic for a given class. For example, a class with a 45% allocated rate priority percentage means that, at worst case, the class receives 45% of the actual available bandwidth of the link, however low the available bandwidth of the link becomes. In contrast, a class with a 0% allocated rate priority percentage can end up with no allocated bandwidth (worst case). Also, any class with an allocated rate priority percentage of 0% has substantially a greater likelihood of losing bandwidth (from its allocated nominal departure rate) than a class with a higher allocated rate priority percentage upon any degradation of the actual available bandwidth.

[0046] Rate priorities differ from conventional scheduling priorities that give one class a higher priority than another class via priority queuing. Scheduling priorities indicate which class should be selected among all classes that have queued packets and that do not violate the rate limiting mechanism (e.g., token bucket). For example, classes can be prioritized from a scheduling point of view based on their delay criteria. In contrast, rate priorities determine which class should be selected among all classes that have queued packets based in general upon whether the classes are receiving at least their minimum allocated share of the available bandwidth and at most their allocated nominal departure rate.

[0047] Example: CBQ-AR (Class Based Queuing with Adaptive Rate)

[0048] As an example, suppose that classes A, B and C have allocated nominal departure rates of 25%, 50%, and 25%, respectively, and class A has a higher scheduling priority than class B. and class B has a higher scheduling priority than class C. An allocation of rate priority percentages of 50%, 50% and 0% to classes A, B, and C, respectively, illustrates that the rate priority percentages need not be proportional to the nominal departure rate allocations.

[0049] In this example, class A, which has the highest rate priority, is guaranteed its allocated nominal departure rate even if the actual available bandwidth drops by 50% (because class A is guaranteed 50% of the actual available bandwidth). If the available bandwidth drops to 75% of the nominal bandwidth, then classes A and B still receive their allocated nominal departure rates, but class C is not guaranteed any bandwidth. (Class C can have some throughput if classes A and B do not require their full, allocated rates). If the available bandwidth drops to less than 50% of the nominal bandwidth, classes A and B equally share the available bandwidth. Thus, the amount of bandwidth that is guaranteed to each class is a function of the available bandwidth.

[0050] The absolute allocations (i.e., nominal departure rate allocations and allocated rate priority percentages together) can be different for different outgoing links if the links are of different types (for example as in the case of use of software defined radios with simultaneous multiple waveforms). The absolute allocations can also be different at different DS-routers 12, 16 if the DS-routers 12, 16 are not homogeneous (as in the case of a network with a mix of different radios with different rate capabilities). In such a heterogeneous environment, local congestion can develop because of the rate dissimilarity among hops. The individual allocations at each DS-router 12, 16 can take into consideration such heterogeneity to reduce the burstiness in traffic patterns and adequate buffers to smooth out the short-term fluctuations. In a homogenous environment, the allocations can be based on the total available bandwidth in the DS-domain 4 instead of on a per link basis.

[0051] The PHB of the invention is achievable using one of a variety of processes for scheduling and/or routing. In accordance with the PHB, the DS-routers 12, 16 dynamically adjust the bandwidth allocations in response to changes in available bandwidth, in accordance with different rate priorities assigned to different service classes. Rate priorities are also achievable by way of alternate routing, for example, by providing alternate routing only to the class with the highest rate priority when a link fails.

[0052]FIG. 2 shows an embodiment of the PHB performed by the DS-boundary and DS-interior routers 12, 16 in the DS domain 4 for providing QoS assurances to different classes of packets. (The order of the steps is exemplary.) In step 50, the set of classes is defined. The PHB of the invention allocates (step 54) a nominal departure rate to each class based on the nominal bandwidth of an outgoing communication link 28 and assigns (step 58) a rate priority to each class.

[0053] Each DS-router 12, 16 also specifies (step 62) a drop precedence for each class of packets. Precedence values are defined for packet dropping within each service class to assure better treatment for more important traffic. Accordingly, within each class, there is a drop precedence hierarchy, i.e., highest drop precedence category to be dropped first and so on. Military priority classes, for example, can be aggregated if necessary in creating such precedence categories. If congested, a given DS router 12, 16 preferably discards packets with higher drop precedence values to protect packets with lower drop precedence values from being lost. Each DS-router 12, 16 executes (step 66) a scheduling process (or mechanism) that satisfies the nominal departure rates and rate priority percentages allocated to each service class and the precedence values assigned to packets within the classes.

[0054] Scheduling Mechanisms to Attain PHB

[0055]FIG. 3 shows an embodiment of a scheduling process used by a DS-router 12, 16 for scheduling transmission of packets stored within the queues of that router node. This process, referred to as CBQ-AR (class-based queuing with adaptive rate), imposes two conditions on the rate of transmission of packets. A first condition controls the nominal departure rate allocated to each class. The other condition ensures that each service class is guaranteed at least its allocated rate priority percentage of the actual available bandwidth (as long as this rate priority percentage does not exceed the nominal departure rate).

[0056] The nominal departure rate of each class (k) is denoted R_(k) and the allocated rate priority percentage is denoted P_(k). For simplifying the description of the process, each data packet is assumed to have the same length so that transmission rates can be expressed in pkts/sec. The principles of the invention can extend to packets of variable length.

[0057] For each class k, an exponential moving average denoted S_(k) is maintained that represents the average rate (pkts/sec) at which class k has been served over the last T seconds. T represents the time interval over which the allocated rates are enforced. For example, if T is chosen to be 60 seconds, then a class k that has been idle for 30 seconds can compensate by using twice its allocated rate for the next 30 seconds. This may or may not be desirable. In one embodiment, T is 5 seconds. A conventional token bucket can be used to attain the allocated rates.

[0058] The CBQ-AR process uses the following two inequalities, which correspond to the two conditions described above, to determine a current exponential moving average, S_(k), for each class k:

S_(k≦R) _(k)   Condition 1

S_(k≦P) _(k*ΣS) _(i)   Condition 2

[0059] where the sum is over all classes i. The first condition enforces the nominal departure rates, and the second condition enforces the rate priority percentage allocations. The sum of S_(i) is an estimate of the actual available bandwidth of the channel. Other estimates can be used without departing from the principles of the invention.

[0060] Satisfying the first condition means that packets of a given class have been transmitted at an average rate over time T that is less than or equal to the nominal departure rate of that class. Satisfying the second condition means that packets of a given class have been transmitted at an average rate over time T that is less than or equal to its allocated rate priority percentage.

[0061] Referring to FIG. 3, the CBQ-AR process based on these two conditions seeks classes that are receiving less than its allocated nominal departure rate and its allocated rate priority percentage. Accordingly, the process identifies (step 100) each service class with a non-empty queue that satisfies both conditions. Of the identified classes, the DS-router 12, 16 selects (step 104) the service class with the highest scheduling priority (for example, class A can be given a higher scheduling priority than class B, class D a higher class than class C, etc. Other factors being equal, the scheduling priority decides which class is allowed to transmit the next packet). The DS-router 12, 16 transmits (step 128) queued packets of the selected class over the corresponding outgoing link.

[0062] If no service class with a non-empty queue satisfies both conditions, then the DS-router 12, 16 identifies (step 108) each service class that satisfies the first condition (i.e., Condition 1) and selects (step 112) the highest scheduling priority class of those classes identified. The DS-router 12, 16 then transmits (step 128) queued packets of the selected class over the corresponding outgoing link.

[0063] If no service class with a non-empty queue satisfies the first condition, then the DS-router 12, 16 identifies (step 116) each class that satisfies the second condition (e.g., Condition 2) and selects (step 120) the highest scheduling priority class of those classes identified. The DS-router 12, 16 then transmits (step 128) queued packets of the selected class over the corresponding outgoing link.

[0064] If no service class with a non-empty queue satisfies either the first or the second condition, then the DS-router 12, 16 selects (step 124) the highest scheduling priority class with a non-empty queue.

[0065] It is to be understood that various scheduling mechanisms other than CBQ-AR can be employed to forward packets in accordance with the two conditions described above, and thereby support the PHB of the invention, without departing from the principles of the invention.

[0066] Simulations were run to compare the performance of the CBQ-AR scheduling mechanism, described above, in its support of the PHB of the invention, with three other scheduling mechanisms: 1) CBQ-PQ (class based queuing with priority queuing), 2) conventional CBQ-WRR (class based queuing with weighted round robin), and 3) best effort forwarding. CBQ-PQ (priority queuing) is CBQ (using Condition 1 above) with strict scheduling priority queuing. CBQ-WRR is CBQ with weighted round robin, where the weights are equal to the nominal departure rates. Best effort treats all classes equally using a single FIFO queue. The CBQ-PQ and CBQ-WRR processes are two mechanisms that support the Expedited Forwarding PHB, described in RFC 2598, V. Jacobson, K. Nichols, and K. Poduri, “An Expedited Forwarding PHB,” June 1999. Such CBQ-PQ and conventional CBQ-WRR mechanisms do not consider rate priorities.

[0067] The simulations used three classes: Class 1 had a nominal departure rate of 4.5 packet/sec and a rate priority percentage allocation of 50%; Class 2 had a nominal departure rate of 9 packets/sec and a rate priority percentage allocation of 50%; Class 3 had a nominal departure rate of 4.5 packets/sec and a rate priority percentage allocation of 0%. As in the example given above, Class 1 had the highest scheduling priority and Class 3 had the lowest. The maximum queue lengths for Classes 1, 2, and 3 were 10 packets, 100 packets, and 100 packets, respectively. Thus, Class 1 had a more stringent delay requirement than the other classes.

[0068] In the simulations, three traffic streams, one per class, were generated at the nominal departure rates at a source node. These traffic streams were routed through an intermediate node to a destination node. The OPNET (Optimized Engineering Network Tool) model for wireless CSMA (carrier-sense multiple access) was used. The channel rate (i.e., available bandwidth) of the intermediate node was gradually decreased from 625 kbps to 125 kbps, and the throughput and end-to-end delay for each class was measured at each channel rate level. The results for throughput are given in Table 1, and the results for end-to-end delay are given in Table 2.

[0069] At the maximum channel rate of 625 kbps, the throughputs of the three classes were roughly proportional to their nominal departure rates for all mechanisms (some loss due to collisions and buffer overflow occurred). At 375 kbps, with CBQ-AR, Class 3's throughput dropped to nearly zero, Class 2's throughput dropped significantly, and Class 1's throughput dropped slightly. The same was observed for CBQ-PQ. CBQ-WRR and best effort always maintained the ratio 1:2:1 for the three classes, which does not attain the PHB of the invention. At 125 kbps, it becomes clear that CBQ-AR supports the PHB of the invention, but CBQ-PQ does not, since with CBQ-AR Classes 1 and 2 receive roughly the same throughput (in accordance with the rate priority percentage allocations), but with CBQ-PQ Class 1 receives much more throughput than Class 2. These simulation results clearly show the need for the PHB of the invention to achieve QoS assurances, and that CBQ-AR is one mechanism to attain it.

[0070] Table 2 shows that CBQ-AR and CBQ-PQ both give Class 1 much lower delays than Classes 2 and 3, but the delays for Class 1 are significantly higher with CBQ-WRR and best effort. It is expected that CBQ-PQ would give a lower delay to Class 1 than CBQ-AR, since the CBQ-PQ mechanism always gives Class 1 highest priority; however, this is accomplished at the cost of not being able to enforce the allocated rate priority percentages. TABLE 1 Throughput (packets/sec) for the three classes for different channel rates using different scheduling mechanisms Channel CBQ-AR CBQ-PQ CBQ-WRR Best effort rate Cl 1 Cl 2 Cl 3 Cl 1 Cl 2 Cl 3 Cl 1 Cl 2 Cl 3 Cl 1 Cl 2 Cl 3 625 kbps 4.00 8.70 4.28 3.77 8.40 4.30 3.17 7.30 3.58 3.95 7.90 4.02 500 kbps 4.33 8.37 3.37 4.22 8.32 3.25 3.58 8.70 4.37 3.13 6.72 3.08 375 kbps 3.73 6.12 0.23 4.35 4.90 0.00 2.48 5.72 2.85 2.80 4.88 2.53 250 kbps 3.33 3.25 0.00 4.38 3.28 0.00 2.07 4.12 2.07 2.23 4.25 2.03 125 kbps 2.58 2.13 0.00 3.90 1.23 0.00 1.35 2.72 1.35 1.47 2.28 1.20

[0071] TABLE 2 End-to-end delay (sec) for the three classes for different channel rates using different scheduling mechanisms Channel CBQ-AR CBQ-PQ CBQ-WRR Best effort rate Cl 1 Cl 2 Cl 3 Cl 1 Cl 2 Cl 3 Cl 1 Cl 2 Cl 3 Cl 1 Cl 2 Cl 3 625 kbps 0.53  1.30  2.56 0.52  1.48  2.92 0.74  1.31  1.42 1.03 1.11 1.13 500 kbps 0.56  1.82 14.45 0.58  1.82 12.57 1.34  5.48 14.55 2.40 2.46 2.35 375 kbps 1.06  9.37 25.21 0.85  9.00 NA 1.74  8.81 14.61 5.73 5.74 5.79 250 kbps 1.44 11.44 NA 0.90  9.98 NA 2.29 11.13 23.38 5.74 5.71 5.82 125 kbps 2.11 11.71 NA 1.04 11.28 NA 2.67 12.25 21.08 5.91 5.99 6.14

[0072] CBQ With Weighted Round-Robin (WRR)

[0073] Another embodiment of a scheduling mechanism that attains the PHB of the invention by forwarding packets in accordance with the two conditions described above is class-based queuing with weighted round-robin (CBQ-WRR). CBQ-WRR mechanism achieves a similar reduction (to the CBQ-AR mechanism) in the nominal departure rates of the classes as the available bandwidth decreases.

[0074] This CBQ-WRR mechanism uses CBQ to limit the departure rates S_(k) (averaged over a period of time) according to the allocated nominal departure rates R_(k) (i.e., to enforce Condition 1 above). The CBQ-WRR mechanism also uses weighted round-robin (WRR) scheduling, where the weights are equal to the rate priority percentages allocated to the classes, to enforce the allocated rate priority percentages P_(k) among the classes k that satisfy Condition 1.

[0075] As with the CBQ-AR mechanism described above, the departure rate S_(k) for each class k is equal to R_(k) as long as the available bandwidth is at the full nominal value. At nominal bandwidth, the WRR scheduling can affect the order in which packets depart, but does not affect the average departure rates S_(k). As the available bandwidth is reduced sufficiently, the nominal departure rates R_(k) can no longer be supported for all classes k, and the average nominal departure rates S_(k) decrease as a function of the nominal departure rates R_(k), the allocated rate priority percentages P_(k), and the available bandwidth S. In the case where the available bandwidth S approaches zero, the actual departure rates will become proportional to the allocated rate priority percentages P_(k).

[0076] Referring to FIG. 4, one embodiment of the CBQ-WRR process of the invention identifies (step 132) each service class with a non-empty queue that is receiving less than its allocated nominal departure rate and its allocated rate priority percentage of the available bandwidth over a time interval T. The DS-router 12, 16 selects (step 136) one of the identified service classes based on the weights assigned to each class and the current place in the round robin order. The DS-router 12, 16 transmits (step 140) one or more queued packets of the selected class over the corresponding outgoing link.

[0077] If no service class with a non-empty queue satisfies both conditions, then the DS-router 12, 16 identifies (step 144) each service class that satisfies the first condition (i.e., Condition 1). The DS-router 12, 16 then selects (step 148) one of the identified service classes as determined by the weighted round robin order. The DS-router 12, 16 then transmits (step 140) one or more queued packets of the selected class over the corresponding outgoing link.

[0078] If every service class with a non-empty queue is receiving more than its allocated nominal departure rate over the time interval T (i.e., no such class satisfies Condition 1), then the DS-router 12, 16 identifies (step 152) each class that satisfies the second condition (e.g., Condition 2). The DS-router 12, 16 selects (step 156) one of the identified service classes as determined by the weighted round robin order and transmits (step 140) one or more queued packets of the selected class over the corresponding outgoing link.

[0079] If every service class with a non-empty queue over time interval T is receiving more than its allocated nominal departure rate and more than its allocated percentage of available bandwidth (i.e., no such service class satisfies either the first or the second condition), then the DS-router 12, 16 selects (step 160) one of such service classes as determined by the weighted round robin order and transmits (step 140) one or more queued packets of the selected class over the corresponding outgoing link.

[0080] An example of how the departure rates S_(k) decrease as the available bandwidth drops is described below.

[0081] Example for the CBQ-WRR Mechanism

[0082] Consider an exemplary embodiment of the DS-domain 4 in which there are four defined classes of services, A, B, C, and D, with nominal departure rates and rate priority percentages allocated to these classes at a given DS-router 12, 16 as shown in Table 3 below. As described above, other DS-routers 12, 16 can be allocated different nominal departure rates and rate priority percentages than those shown in Table 3. For the purpose of this example, assume that each service class uses the full bandwidth allocable to it. Further, assume that the nominal bandwidth under good link conditions is 100K pkts/sec (a bandwidth value arbitrarily selected to simplify the arithmetic). TABLE 3 Service Class Nominal Departure Rate Rate Priority Percentage A 10% 60% B 30%  0% C 50% 30% D 10% 10%

[0083] As shown by the example in Table 3, the rate priority percentages allocated to the service classes are not proportional to the nominal departure rates allocated to these classes.

[0084] Table 4 below shows an example of an actual allocation of bandwidth to each of the service classes A, B, C, and D in accordance with the CBQ-WRR mechanism described above employed by the DS-router 12, 16 at various levels of actual available bandwidth. TABLE 4 Bandwidth Allocated to Each Service Class Actual (K pkts/sec) Available Service Service Service Service Bandwidth Class Class Class Class (K pkts/sec) A B C D 100 (nominal) 10 30 50 10  90 (10% drop) 10 20 50 10  80 (20% drop) 10 10 50 10  70 (30% drop) 10 0 50 10  60 (40% drop) 10 0 40 10  50 (50% drop) 10 0 30 10  40 (60% drop) 10 0 22.5 7.5  30 (70% drop) 10 0 15 5  20 (80% drop) 10 0 7.5 2.5  10 (90% drop)  6 0 3 1

[0085] Because the CBQ-WRR mechanism uses weighted round robin scheduling, it enforces the allocated rate priority percentages on a very short-term basis, unlike the CBQ-AR mechanism, which enforces the allocated rate priority percentages over some time interval that can be selected. Also, since the CBQ-WRR mechanism uses WRR scheduling, it does not support class priorities. Therefore, the CBQ-AR mechanism is preferred if it is desirable to give some classes higher priority, e.g., to achieve lower delay.

[0086] Dropping Packets

[0087] Fluctuations in wireless network behavior produce long term and short term implications on network congestion. In general, congestion problems are handled by dropping packets. To smoothen the process of dropping packets, one embodiment uses configurable dual threshold congestion levels (e.g., Random Early drop). A suitable parameter is chosen to indicate the congestion level that is specifiable, configurable, and measurable. Whenever the instantaneous value of the parameter, which for example can be a moving average derived from a selected window size, is below the lower threshold, no dropping of packets occurs. If the value lies between the lower and upper thresholds, the dropping probability for that relevant precedence increases, ranging from zero to a specified percent in a graded manner as the upper threshold is approached. When the value reaches above the second (upper) threshold, packets of that relevant precedence are dropped with certainty.

[0088] In accordance with the principles of the invention, the PHB performed by the DS-boundary and DS-interior routers 12, 16 extends such packet dropping for short term congestion as well (i.e., the DS-routers 12, 16 make no distinction between long term and short term congestion). Dropping packets under short-term congestion prevents excessive build up of packets within the queues and meets delay constraints. For low delay constraints (with small queue sizes), another mechanism for dropping packets can be adopted (for queue sizes below a threshold) instead of the dual threshold mechanism. In this case, a configurable single threshold, such as the queue size, is defined. Whenever the value of the parameter exceeds the threshold, packets are dropped within the class according to the drop precedence hierarchy, i.e., highest drop precedence category to be dropped first and so on. To ensure that the packet-dropping process is fair to multiple micro-flows within a drop precedence category, a randomized dropping criterion can be used (instead of first-in-first-out) when multiple packets exist within that drop precedence category. Such a randomized dropping process smoothens the drops across multiple flows whose packets can arrive in short term bursts.

[0089] Additional aspects of the PHB of the invention follow below:

[0090] Rate Degradation

[0091] When the nominal departure rate allocations cannot be achieved on an average basis over a prolonged time interval, in one embodiment, the DS-routers 12, 16 define progressively decreasing nominal departure rate allocations for the service classes. This takes into account whether some packet streams can tolerate any gradual degradation, which is determined by rate priority.

[0092] Preemption

[0093] When a lower drop precedence packet arrives during the transmission period of a packet belonging to a higher drop precedence category, in one embodiment, the ongoing transmission of the latter packet is be preempted in favor of the newly arrived packet.

[0094] PHB Performance Feedback and Adjustments

[0095] In view of highly dynamic nature of wireless link characteristics, adaptation of the PHB either through invocation of new PHB features or parameterization of existing features can be considered based on the feedback from the network. For example, the DS-routers 12, 16 can modify the nominal departure rate or rate priority percentages allocated to the classes.

[0096] Security Considerations

[0097] To prevent denial of service attacks, the DS-routers 12, 16 avoid allocating all of the router and network resources to one class. By allocating minimum nominal resources to each class, a reduced level of service can be maintained even if attacks occur on one or more classes.

[0098] Ad-hoc Network PHB and Interactions Between DS Domains

[0099] In one embodiment, the DS-routers 12, 16 support a default PHB, which is the best-effort forwarding. Under the default PHB, the routers 12, 16 reserve resources, such as buffers and queues, to provide a minimal level of service for traffic that is not DS-compliant. Supporting the default PHB enables the coexistence of DS-compliant and non-DS-compliant traffic, which can be important during any transition period within the DS-domain 4.

[0100] Accordingly, codepoints assigned to the PHB of the invention do not interfere with the Class Selector Codepoints for backward compatibility with IPv4 TOS (Type of Service) and IPv6 Traffic classes. Also, the default PHB codepoint of ‘000000’ can remain available for conventional best effort treatment for non-DS-compliant traffic. Also, any other PHB groups, such as EF PHB (Expedited Forwarding PHB) and AF PHB (Assured Forwarding PHB) can coexist with the PHB of the invention. Excess resources and used resources can be reallocated within the PHB of the invention and among other PHBs and PHB groups that can be present, including the default PHB.

[0101] Service Provisioning in Multicast Traffic

[0102] In one embodiment, the PHB of invention is used to provide unicast services exclusively, thus providing resource isolation from multicast services due to the variability and unpredictability of such multicast services.

[0103] The present invention may be implemented as one or more computer-readable software programs embodied on or in one or more articles of manufacture. The article of manufacture can be, for example, any one or combination of a floppy disk, a hard disk, hard-disk drive, a CD-ROM, a DVD-ROM, a flash memory card, an EEPOM, an EPROM, a PROM, a RAM, a ROM, or a magnetic tape. In general, any standard or proprietary, programming or interpretive language can be used to produce the computer-readable software programs. Examples of such languages include C, C++, Pascal, JAVA, BASIC, Visual Basic, and Visual C++. The software programs may be stored on or in one or more articles of manufacture as source code, object code, interpretive code, or executable code.

[0104] While the invention has been shown and described with reference to specific preferred embodiments, it should be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the following claims. 

What is claimed is:
 1. In a network comprising a plurality of router nodes connected in the network by communication links, a method of providing quality of service assurances for transmitting packets over a channel capable of transmission at a nominal bandwidth, the method comprising: defining a plurality of classes, each of the class representing an aggregate behavior of packets; allocating to each of the classes a nominal departure rate at which the packets of that class are transmitted when an available bandwidth of the channel is substantially operating at the nominal bandwidth; and assuring each of the classes a minimum allocation of the available bandwidth for transmitting packets of that class if the available bandwidth of the channel is operating at less than the nominal bandwidth.
 2. The method of claim 1 wherein the step of assuring a minimum allocation to each of the classes comprises assigning a percentage to each of the classes that represents a minimum percentage of the available bandwidth that is allocated to that class.
 3. The method of claim 1 wherein the minimum allocations assured to the classes are proportionally different than the nominal departure rates allocated to these classes.
 4. The method of claim 1 further comprising establishing a drop precedence for each of the classes to determine a priority for dropping packets of that class.
 5. The method of claim 1 wherein the nominal departure rate assigned to each of the classes by a given one of the router nodes is a percentage of a nominal bandwidth of an outgoing communication link of that router node.
 6. The method of claim 1 wherein a given router node has a plurality of outgoing communication links and the nominal departure rate allocated to a given class is different for the different outgoing communication links.
 7. The method of claim 1 wherein the nominal departure rate allocated to a given class is different for different router nodes.
 8. The method of claim 1 wherein a given router node has a plurality of outgoing communication links and the nominal departure rate together with the assured minimum allocation allocated to a given class is different for the different outgoing communication links.
 9. The method of claim 1 wherein the nominal departure rate together with the minimum allocation allocated to a given class is different for different router nodes.
 10. The method of claim 1 further comprising dropping packets from queues to limit the delay at a given router node.
 11. The method of claim 10 further comprising attaining the minimum allocations assured to each of the service classes by providing an alternate route for packets of service classes in accordance with the rate priorities assigned to the service classes.
 12. The method of claim 1 wherein at least one of the communication links is a wireless link.
 13. The method of claim 1 further comprising assigning scheduling priorities to the classes based on a criterion.
 14. The method of claim 13 wherein the criterion is a delay that each class can tolerate.
 15. The method of claim 1 further comprising dynamically changing the nominal departure rate allocations to one of the classes
 16. The method of claim 1 further comprising dynamically changing the minimum allocations allocated to the classes.
 17. In a network, a router node capable of supporting differentiated services, the router node comprising: a classifier defining a plurality of classes, each of the classes representing an aggregate behavior of packets; an allocater allocating to each of the classes a nominal departure rate at which the packets of that class are transmitted when an available bandwidth of the channel is substantially operating at the nominal bandwidth; and a rate prioritizer assigning to each of the classes a minimum allocation of the available bandwidth for transmitting packets of that class if the available bandwidth of the channel is operating at less than the nominal bandwidth to provide quality of service assurances for transmitting packets over the network.
 18. The router node of claim 17 further comprising a plurality of outgoing communication links, and wherein the nominal departure rate allocated to a given class is different for different outgoing communication links
 19. The router node of claim 17 further comprising a plurality of outgoing communication links, and wherein the nominal departure rate together with the assured minimum allocation allocated to a given class is different for different outgoing communication links
 20. An article of manufacture having computer-readable program means embodied thereon for providing quality of service assurances for transmitting packets over a channel capable of transmission at a nominal bandwidth, the article comprising: computer-readable means for defining a plurality of classes, each of the class representing an aggregate behavior of packets; computer-readable means for allocating to each of the classes a nominal departure rate at which the packets of that class are transmitted when an available bandwidth of the channel is substantially operating at the nominal bandwidth; and computer-readable means for assuring each of the classes a minimum allocation of the available bandwidth for transmitting packets of that class if the available bandwidth of the channel is operating at less than the nominal bandwidth. 